package www.wen.com.common.lib.base.activity

import android.webkit.WebView
import androidx.databinding.ViewDataBinding
import www.wen.com.common.R
import www.wen.com.common.lib.data.entities.WebEntity
import www.wen.com.common.lib.helper.loading.KeyHelper.WEB_PARAMETER


/**
 * @author WEN
 * @Description:
 * @date 2020/11/1 21:54
 */
abstract class BrowserActivity<K : ViewDataBinding> : BaseActivity<K>() {

    lateinit var mWebView:WebView

    open lateinit var mWebEntity: WebEntity

    override fun initialize() {
        mWebView = dataBinding.root.findViewById(R.id.webView)
        mWebEntity = intent.getParcelableExtra(WEB_PARAMETER)!!
        mWebView.loadUrl(mWebEntity.url)
    }

}

